package com.pmpd.activity.rpc;

import com.pmpd.activity.bo.api.ActivityWinningUserBo;
import com.pmpd.activity.rpc.fallback.ActivityUCenterRpcFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @Author liuying
 * @Description 活动调用UCenter模块
 * @Date 18:27 2018/6/8
 */
@FeignClient(name = "dmap-ucenter-server", fallback = ActivityUCenterRpcFallback.class)
public interface ActivityUCenterRpc {
    @RequestMapping(value = "/rpc/dmap-ucenter-server/v1/activity/select/selectUserList", method = RequestMethod.POST)
    List<ActivityWinningUserBo> selectUserList(@RequestBody List<Long> param);

}
